{% extends 'frontend/index_base.html' %}

{% block title %}在线练习{% endblock %}

{% block nav_exercise %}active{% endblock %}

{% block content %}
<div class="text-center mb-5">
    <h1 class="display-4 text-primary">在线练习</h1>
    <p class="lead">这里是在线练习页面，您可以在这里进行各种编程练习，提升您的编程技能！</p>
</div>
<div class="row mb-5">
    <div class="col-md-6">
        <div class="card">
            <div class="card-body">
                <h5 class="card-title">Python在线练习</h5>
                <p class="card-text">通过实践练习提升Python编程能力。</p>
                <a href="{{ url_for('exercises.python') }}" class="btn btn-primary">开始练习</a>
            </div>
        </div>
    </div>
    
    <div class="col-md-6">
        <div class="card">
            <div class="card-body">
                <h5 class="card-title">Scratch在线练习</h5>
                <p class="card-text">体验Scratch图形化编程的乐趣。</p>
                <a href="{{ url_for('exercises.scratch') }}" class="btn btn-primary">开始练习</a>
            </div>
        </div>
    </div>
</div>
{% endblock %}
